﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace cwdz
{
    public partial class test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DateTime now = DateTime.Now;
            DateTime BgDate = new DateTime(now.Year, now.Month, 1);
            DateTime EdDate = BgDate.AddMonths(1).AddDays(-1);

            //BgDateLabel.Text = String.Format("YYYY-MM-DD",BgDate);
            BgDateLabel.Text = BgDate.ToString("yyyy-MM-dd");
            EdDateLabel.Text = EdDate.ToString("yyyy-MM-dd");

        }
    }
}